﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="CreateTestGroup.aspx.cs" Inherits="cognysClient.Admin.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div id="divMain" class="divMain" runat="server">

            
            <div id="divCreateTestGroup" class="divCreateTestGroup" runat="server">
                <h2 class="titlePage">Skapa Testgrupp</h2>
                <asp:Label ID="lblCreateTestGroup" runat="server" CssClass="lblCreateTestGroup" Text="Gruppnamn:"></asp:Label>
                <asp:TextBox ID="tbCreateTestGroup" CssClass="tbCreateTestGroup" runat="server"></asp:TextBox>
                <asp:Label ID="lblDescription" runat="server" CssClass="lblCreateTestGroup" Text="Beskrivning:"></asp:Label>
                <asp:TextBox ID="tbDescription" CssClass="tbDescription" TextMode="MultiLine" runat="server"></asp:TextBox>
                <asp:Button ID="btnCreateTestGroup" CssClass="btnCreateTestGroup" runat="server" Text="Skapa Testgrupp" OnClick="btnCreateTestGroup_Click" ValidationGroup="createTestGroup" />
            </div>

                    <div id="divCreatedTestGroup" class="divCreatedTestGroup" runat="server">
                        <asp:ValidationSummary ID="createTestgroupValidationSummary" runat="server"  
                         ValidationGroup="createTestGroup"/>
            <asp:Label ID="lblCreatedTestGroup" runat="server" CssClass="lblCreatedTestGroup" Text=""></asp:Label><br /><br />
            <asp:Label ID="lblCreatedGroup" CssClass="lblCreatedTestGroup" runat="server" Text=""></asp:Label>
            <asp:Label ID="lblGroupAnswer" CssClass="lblCreatedTestGroup" runat="server" Text=""></asp:Label><br />
            <asp:Label ID="lblCreatedDescription" CssClass="lblCreatedTestGroup" runat="server" Text=""></asp:Label><br />
            <asp:Label ID="lblDescriptionAnswer" CssClass="lblCreatedTestGroup" runat="server" Text=""></asp:Label>

        </div>
    </div>
    
    <asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" 
        ErrorMessage="Felaktigt gruppnamn" 
        ValidationExpression="^([\S\s]{1,50})$" 
        ControlToValidate="tbCreateTestGroup" 
        ValidationGroup="createTestGroup"/>

    <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" 
        ErrorMessage="Felaktig beskrivning" 
        ValidationExpression="^([\S\s]{1,500})$" 
        ControlToValidate="tbDescription" 
        ValidationGroup="createTestGroup"/>
    
    <asp:RequiredFieldValidator   
        ID="RequiredFieldValidator1"  
        runat="server"  
        ControlToValidate="tbCreateTestGroup"  
        Text="*"
        ErrorMessage="Gruppnamn saknas" 
        ValidationGroup="createTestGroup"  />  
    <asp:RequiredFieldValidator   
        ID="RequiredFieldValidator2"  
        runat="server"  
        ControlToValidate="tbDescription"  
        Text="*"
        ErrorMessage="Beskrivning saknas" 
        ValidationGroup="createTestGroup"  />  
</asp:Content>
